package com.meowcook.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-05-26
 * Time: 16:21
 */
@Data
@ApiModel(value = "更新烹饪步骤参数")
public class CookingUpdateDTO {

    @NotNull
    @ApiModelProperty(value = "步骤id", required = true)
    private Long id;

    @Max(value = 60000, message = "步骤不能超过60000步")
    @ApiModelProperty(value = "步骤n，n不能大于60000")
    private Short stepNumber;

    @Length(max = 30, message = "标题不能超过30字")
    @ApiModelProperty(value = "步骤标题，不能超过30字")
    private String title;

    @Length(max = 300, message = "描述不能超过300字")
    @ApiModelProperty(value = "烹饪流程描述，不能超过300字")
    private String description;

    @ApiModelProperty(value = "流程图地址，非必传项, 当为空时，忽略该参数")
    private String imageUrl;

    @Max(5000)
    @ApiModelProperty(value = "烹饪所需时间数值n，n不能大于5000，如果n过大请提示用户使用正确的时间单位")
    private Short timeRequired;


    @ApiModelProperty(value = "枚举类，时间单位，1-秒，2-分，3-时，4-天")
    private Byte timeUnit;
}
